package com.javaAPI.demo10;

import java.util.Arrays;

public class Test {
    public static void main(String[] args) {

        int[] arr = {99,87,22,33,77};
        //输出内存地址
        System.out.println(arr);

        //Arrays.toString(arr)转化为字符串
        String string = Arrays.toString(arr);
        System.out.println(string);

        //排序，冒泡排序  Arrays.sort(arr);
        Arrays.sort(arr);
        String string1 = Arrays.toString(arr);
        System.out.println(string1);


        char[] ch = {'a','v','b'};
        Arrays.sort(ch);
        String string2 = Arrays.toString(ch);
        System.out.println(string2);


    }
}
